<?php
namespace Admin\Form;

use Zend\Form\Form;
use Zend\Form\Element;
use Zend\Captcha\AdapterInterface as CaptchaAdapter;

class Login extends Form
{
    protected $captcha;

    public function setCaptcha(CaptchaAdapter $captcha)
    {
        $this->captcha = $captcha;
    }

    public function prepareElements()
    {
        // add() can take either an Element/Fieldset instance,
        // or a specification, from which the appropriate object
        // will be built.

        $this->add(array(
            'name' => 'login',
            'options' => array(
                'label' => 'Your Login',
            ),
            'attributes' => array(
                'type'  => 'text',
            ),
        ));
        $this->add(array(
            'name' => 'password',
            'options' => array(
                'label' => 'Your Password',
            ),
            'attributes' => array(
                'type'  => 'email',
            ),
        ));
    }
}
?>
